package com.iot.gateway.tsl.model;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 调用开放平台获取 token 的请求体
 */
@Schema(name = "OpenTokenRequest", description = "获取 OpenToken 请求体")
public class OpenTokenRequest {

    @Schema(description = "请求参数", required = true)
    private Params params;

    public Params getParams() {
        return params;
    }

    public void setParams(final Params params) {
        this.params = params;
    }

    @Schema(name = "Params", description = "OpenToken 接口请求参数")
    public static class Params {

        @Schema(description = "应用 ID", required = true, example = "443730751534239744")
        private String appId;

        @Schema(description = "应用密钥", required = true, example = "Jp9Gljxn8ZGK8vDKCf")
        private String appSecretKey;

        public String getAppId() {
            return appId;
        }

        public void setAppId(final String appId) {
            this.appId = appId;
        }

        public String getAppSecretKey() {
            return appSecretKey;
        }

        public void setAppSecretKey(final String appSecretKey) {
            this.appSecretKey = appSecretKey;
        }
    }
}
